-- GENERATED SPELL FOR [Doomcryer] --


function spell0_19963(pUnit, Event) --@Curse of Burning Shadows,n/a--
pUnit:FullCastSpellOnTarget(36541,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19963', 536, 1)
end

function spell1_19963(pUnit, Event) --@Melt Flesh,n/a--
pUnit:FullCastSpellOnTarget(37629,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19963', 17000, 1)
end

function spell2_19963(pUnit, Event) --@Rain of Chaos,n/a--
pUnit:FullCastSpellOnTarget(34017,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19963', 9000, 1)
end

function Sorts_19963(pUnit, Event)
local choix_sorts_19963 = math.random(0, 2)
if choix_sorts_19963 == 0 then
pUnit:RegisterEvent('spell0_19963', 1, 1)
end
if choix_sorts_19963 == 1 then
pUnit:RegisterEvent('spell1_19963', 1, 1)
end
if choix_sorts_19963 == 2 then
pUnit:RegisterEvent('spell2_19963', 1, 1)
end
end

function mob19963_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19963', math.random(1500, 3000), 1)
end

function mob19963_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19963_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19963_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19963, 1, 'mob19963_Action')
RegisterUnitEvent(19963, 2, 'mob19963_Leave')
RegisterUnitEvent(19963, 3, 'mob19963_Kill')
RegisterUnitEvent(19963, 4, 'mob19963_Die')
